package com.qf.mrmd.controller;

import com.qf.mrmd.result.ResponseData;
import com.qf.mrmd.service.HomeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/home")
public class HomeController {

    @Autowired
    private HomeService homeService;

    @ApiOperation(value = "获取预约数量、用户数量、商家数量")
    @GetMapping("/count")
    public ResponseData getCount(){

        return homeService.getCount();
    }

}

